
package generics.questions;

import java.util.LinkedList;

public class Library2 {
    private LinkedList dataStorage = new LinkedList();
    
    public void addToDataStorage(Media element){
        dataStorage.add(element);
    }
    
    public void removeFromDataStorage(int index){
        dataStorage.remove(index);
    }
    
    public Media getItem(int index){
        return (Media) dataStorage.get(index);
    }
    
}
